#include <EB0/EB0.h>
#include <iostream>

namespace EB0
{
namespace Debug
{
	// Exception Constructor
	Exception::Exception(char* exc)
	{
		mErrorMsg = exc;
	}

	// Exception Destructor
	Exception::~Exception()
	{
		mErrorMsg.clear();
	}

	// Exception Message Output
	const char* Exception::what() const
	{
		return mErrorMsg.c_str();
	}

	// Output an error message
	// A generic function that could be turned into an error log!
	void ErrorLog(const char* error)
	{
		printf("%s", error);
	}
} // namespace Debug
}